#setLocal(customJs=['/js/lib/wangEditor-3.0.8/wangEditor.min.js','/js/news/news-detail.js'])
#@otherLayout() #define otherMain()
<div class="page-container">
	<input type="hidden" value="#(ctx)" id="actionRoot">
	<form action="#(ctx)/news/addOrEdit" method="post" class="form form-horizontal">
	<input type="hidden" name="content" id="content" value="">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>动态名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" placeholder=""  name="content.title">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>动态所属菜单：</label>
			<div class="formControls col-xs-8 col-sm-9"> 
			
				<span class="select-box">
				<select name="content.type" class="select">
					#for(m:childMenus)
						<option value="#(m.id)">#(m.name)</option>
					#end
				</select>
				</span>
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">动态内容：</label>
			<div class="formControls col-xs-8 col-sm-9" id="editor">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button  class="btn btn-primary radius" id="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				<button onclick="history.back(-1);" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
#end